package org.programmers.anonymous.fightrobots.model;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeInfo.Id;

/**
 * Interface which allows implementing URLId objects
 * 
 * @author David Rodriguez, Francisco Villalba
 *
 */

@JsonTypeInfo( use = Id.NAME )
@JsonSubTypes(
    {
        @Type( name = "URLId", value = URLId.class )
    }
)
public interface IURLId {
	
 /**
  * 
  * @return - The url stored on the object
  */
 public String getURL();
 
 /**
  * 
  * @return - The robot id stored on the object
  */
 public String getRobotId();
 
 /**
  * Sets the URL
  * @param newURL -  Sets the URL
  */
 public void setURL(String newURL);
 
 /**
  * Sets the robot id
  * @param newRobotId -  Sets the robot Id
  */
 public void setRobotId(String newRobotId);
 
 @Override
 public boolean equals(Object ow);
 
}
